#import <UIKit/UIKit.h>

@class CustomTableViewCell;

// 定义代理协议，用于处理按钮点击事件
@protocol CustomTableViewCellDelegate <NSObject>
- (void)customCell:(CustomTableViewCell *)cell didTapButton:(UIButton *)button;
@end

@interface CustomTableViewCell : UITableViewCell

// UI 组件
@property (nonatomic, strong) UIImageView *iconImageView;
@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UIButton *actionButton;

// 代理
@property (nonatomic, weak) id<CustomTableViewCellDelegate> delegate;

// 配置单元格的方法
- (void)configureWithImage:(UIImage *)image title:(NSString *)title buttonTitle:(NSString *)buttonTitle;

@end
